/*
 *  arch/arm/mach-integrator/include/mach/memory.h
 *
 *  Copyright (C) 1999 ARM Limited
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H

/*
 * Integrator Core Module Memory Map:
 * In accordance to 'Integrator User Guides'
 * See:
 * http://infocenter.arm.com/help/topic/com.arm.doc.dui0161a/DUI0161A_cm10200e_ug.pdf
 * http://infocenter.arm.com/help/topic/com.arm.doc.dui0138e/DUI0138E_CMxx6_UserGuide.pdf
 *
 */
#define INTEGRATOR_ROM_BASE					0x00000000 /* 0x00000000–0x001FFFFF Boot ROM or flash on motherboard */
/* An actual size of SSRAM can be obtained from CORE_STATUS_R register */
#define INTEGRATOR_SSRAM_BASE				0x00000000 /* 0x00000000–0x001FFFFF SSRAM */

#ifdef __ARM102xx__
#define INTEGRATOR_LOCAL_SDRAM_BASE			0x00200000 /* 0x00200000–0x0FFFFFFF 254MB 	Local SDRAM (DIMM) */
#else	/* __ARM92xx */
#define INTEGRATOR_LOCAL_SDRAM_BASE			0x00100000 /* 0x00100000–0x0FFFFFFF 255MB 	Local SDRAM (DIMM) */
#endif

#define INTEGRATOR_LOCAL_SDRAM_BASE_0		INTEGRATOR_LOCAL_SDRAM_BASE
#define INTEGRATOR_LOCAL_SDRAM_BASE_1		0x04000000
#define INTEGRATOR_LOCAL_SDRAM_BASE_2		0x08000000
#define INTEGRATOR_LOCAL_SDRAM_BASE_3		0x0C000000

#define INTEGRATOR_REG_BASE					0x10000000 /* 0x10000000–0x107FFFFF 8MB		Core module registers */
#define INTEGRATOR_SSRAM_ALIAS_BASE			0x10800000 /* 0x10800000–0x10FFFFFF 8MB		SSRAM alias */
#define INTEGRATOR_SYSTEM_BUS_LO_BASE		0x11000000 /* 0x11000000–0x2FFFFFFF 512MB	System bus address space */

#define INTEGRATOR_PRIVATE_SDRAM_BASE		0x30000000 /* 0x30000000–0x3FFFFFFF 256MB 	Local SDRAM (DIMM) */
#define INTEGRATOR_PRIVATE_SDRAM_BASE_0		INTEGRATOR_PRIVATE_SDRAM_BASE
#define INTEGRATOR_PRIVATE_SDRAM_BASE_1		0x34000000
#define INTEGRATOR_PRIVATE_SDRAM_BASE_2		0x38000000
#define INTEGRATOR_PRIVATE_SDRAM_BASE_3		0x3C000000

#define INTEGRATOR_SYSTEM_BUS_HI_BASE 		0x40000000 /* 0x40000000–0xFFFFFFFF 3568MB	System bus address space */

#endif
